 {
        
      cc.Class({
            extends: cc.Component,
            properties: {
                item1: {
                    default: null,
                    type: cc.Node
                },
                item2: {
                    default: null,
                    type: cc.Node
                },
                item3: {
                    default: null,
                    type: cc.Node
                },
                fanName1: {
                    default: null,
                    type: cc.Label
                },
                fanNum1: {
                    default: null,
                    type: cc.Label
                },
                fanName2: {
                    default: null,
                    type: cc.Label
                },
                fanNum2: {
                    default: null,
                    type: cc.Label
                },
                fanName3: {
                    default: null,
                    type: cc.Label
                },
                fanNum3: {
                    default: null,
                    type: cc.Label
                }
            },
            start: function () {
            },
            bindData: function (e, t, n) {
                if (1 == e) this.refresh(this.item1, t, this.fanName1, this.fanNum1, n); else if (2 == e) this.refresh(this.item2, t, this.fanName2, this.fanNum2, n); else {
                    var o = Global.utils.searchComp(this.node, "fanName", cc.Label),
                        i = Global.utils.searchComp(this.node, "fanNum", cc.Label);
                    this.refresh(null, t, o, i, n);
                }
            },
            changeColor: function (e) {
                var t = new cc.Color(174, 211, 216);
                if (0 == e) {
                    for (var n = 0; n < this.item1.childrenCount; n++) this.item1.children[n].color = t;
                    for (n = 0; n < this.item2.childrenCount; n++) this.item2.children[n].color = t;
                }
            },
            refresh: function (e, t, n, o, i) {
                if (e && (e.active = !0), n) {
                    var a = Global.utils.getFixString(t[0], 7);
                    n.string = a;
                }
                var r = "";
                Global.roomInfoModel.getPlayModel() != Global.config.playModel.ERREN && Global.roomInfoModel.getPlayModel() != Global.config.playModel.ERRENQUICK || (1,
                    r = Global.utils.getUnit()), o && (o.string = t[1] + r);
                var s = new cc.Color(174, 211, 216);
                Global.roomInfoModel.getPlayModel() == Global.config.playModel.ERRENQUICK && (s = new cc.Color(179, 243, 255)),
                i || (n.node.color = s, o.node.color = s);
            }
        })
    }